// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * 文件业务类型枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022-04-14
 */
public enum FileBusinessTypeEnum {
    DESIGN_CLAUSE_REQUIREMENT(1,null,"设计条款技术要求"),
    DESIGN_CLAUSE_APPLICABILITY(2,null,"设计条款适用范围"),
    DESIGN_CLAUSE_REFERENCE(3,null,"设计条款参考标准"),
    DESIGN_CLAUSE_ATTACH(4,null,"设计条款附件"),
    DESIGN_SPECIFICATION(5,null,"规格书附件"),
    MATERAIL_STATUS_ATTACH(6,"uploadLocal/","物料状态变更附件"),
    MOC_RECORD_ATTACH(7,"uploadLocal/","变更记录附件"),
    ECN_ATTACH(8,"uploadLocal/","ECN附件"),
    QUESTION_TEST_ATTACH(10,"uploadLocal/","测试问题清单附件"),
    DESIGN_STANDARD_ATTACH(11,null,"设计标准附件"),
    DESIGN_STANDARD_MASTER(12,null,"设计标准主文档"),
    INVENTORY_ATTACH(13,"uploadLocal/","库存管理导入文件"),
    DESIGN_STANDARD_MASTER_PDF(14,"uploadLocal/","设计标准主文档pdf"),
    CHIMI_CARD_ATTACH(15,"uploadCHIMI/","论坛发帖附件"),
    BUTLER_TRAIN_COVER(16,"uploadLocal/","培训文档封面"),
    FAQ_ATTACH(17,"uploadLocal/","FAQ附件"),
    CAROUSEL_ATTACH(18,"uploadLocal/","轮播图片"),
    BUTLER_TRAIN_MAIN(19,"uploadLocal/","培训文档主文件"),
    BUTLER_TRAIN_MAIN_PDF(20,"uploadLocal/","培训文档主文档pdf"),
    BUTLER_TRAIN_ATTACH(21,"uploadLocal/","培训文档附件"),
    EXPERT_PICTURE(22,"uploadLocal/","讲师照片"),
    MESSAGE_PUSH_MEDIA(23,"uploadLocal/","消息推送文件"),
    USER_PICTURE(24,"uploadLocal/","用户头像"),
    PROJECT_FILE(25,"uploadProject/","项目文档"),
    BACKUP_FILE(26,"","备份文档"),
    MATERIAL_CONVOLUTION(27,null,"成本卷积"),
    CAROUSEL_MOBILE_ATTACH(28,"uploadLocal/","移动端轮播图片"),
    PATENT_TRENDS_PICTURE(29,"uploadLocal/","专利动态图片"),
    PATENT_TRENDS_ATTACH(30,"uploadLocal/","专利动态附件"),
    PATENT_IMPORT_ATTACH(31,"uploadLocal/","专利管理导入文件"),
    PATENT_DEPARTMENT_IMPORT_ATTACH(32,"uploadLocal/","专利部门导入文件"),
    PATENT_TRENDS_ATTACH_PICTURE(33,"uploadLocal/","专利动态文件内图片"),
    PATENT_CAROUSEL_ATTACH(34,"uploadLocal/","专利轮播图片"),
    ASSETS_BUDGET_ATTACH(35,"uploadLocal/","固资预算导入文件"),
    PATENT_GOODS_IMPORT_ATTACH(36,"uploadLocal/","专利产品导入文件"),
    ASSETS_EXPENSE_ORDER_ATTACH(37,"uploadLocal/","固资费用订单导入文件"),
    ASSETS_PROJECT_ATTACH(38,"uploadLocal/","固资项目导入文件"),
    PATENT_RISK_ATTACH(39,"uploadLocal/","专利风险附件文件"),
    PATENT_SEARCH_RECORD_ATTACH(40,"uploadLocal/","专利检索记录文件"),
    PATENT_PROPOSAL_THIRD_ATTACH(41,"uploadLocal/","第三方评估报告文件"),
    PATENT_PROPOSAL_IMPORT_ATTACH(42,"uploadLocal/","风险专利导入文件");

    private int value;

    private String folder;

    private String name;

    FileBusinessTypeEnum(int value,String folder, String name) {
        this.value = value;
        this.folder = folder;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getFolder() {
        return folder;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        FileBusinessTypeEnum arrObj[] = FileBusinessTypeEnum.values();
        for (FileBusinessTypeEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }

    public static String getFolderByValue(int value) {
        FileBusinessTypeEnum arrObj[] = FileBusinessTypeEnum.values();
        for (FileBusinessTypeEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getFolder();
            }
        }
        return " ";
    }
}
